package com.biz.primus.app.erpbridge.service;

import com.biz.primus.base.enums.commodity.OssType;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * MnsOssMessageVo
 *
 * @author JKLiues
 * @date 2017/11/17
 */
@Getter
@Setter
@ToString
public class MnsOssMessageVo implements Serializable {
    private static final long serialVersionUID = -5624414887665739429L;

    @NotNull(message = "oss bucket不能为空")
    private String bucket;

    @NotNull(message = "oss key不能为空")
    private String key;

    @NotNull(message = "oss md5不能为空")
    private String md5;

    private OssType type;

    @NotNull(message = "oss time不能为空")
    private Timestamp time;

}
